<div class="form-div">
    <form action="/admin/article/" method="get">
        文章分类
        <select name="cat_id" id="cat_id">
                <option value="">请选择分类</option>
                    <?php
                    foreach ($this->catlist as $cat):
                        echo '<option value="'. $cat['cat_id'] .'"';
                        echo isset($this->search['cat_id']) && $this->search['cat_id'] == $cat['cat_id'] ? 'selected' : '';
                        echo  '>';
                        echo str_repeat('&nbsp;', $cat['level'] * 2) . $cat['cat_name'] .'</option>';
                    endforeach
                    ?>
        </select>
        关键字 <input type="text" id="keywords" name="keywords" value="<?php echo $this->search['keywords'];?>" title="用户名或email" />
        <input type="submit" value="搜索" class="search" />
    </form>
</div>
<form action="/admin/article/drop" method="post">
<input type="hidden" name="url" value="<?php echo $this->url;?>" />
<input type="hidden" name="act" value="drop" />
<div class="list-div" id="listDiv">
    
        <table width="100%" cellpadding="3" cellspacing="1">
            <tr>
              <th width="4%" scope="col"><input type="checkbox" name="idsSelectAll" id="idsSelectAll" onClick="selectBox(this.id, 'article_ids[]')" /></th>
                <th width="4%" scope="col">编号</th>
                <th width="11%" scope="col">分类</th>
                <th width="28%" scope="col">标题</th>
                <th width="21%" scope="col">关键字</th>
                <th width="10%" scope="col">作者</th>
                <th width="14%" scope="col">添加时间</th>
                <th width="8%" scope="col">操作</th>
            </tr>
            <?php
			if (! count($this->lists)) {
				echo '<tr><td colspan=10>暂无</td></tr>';
			}
            foreach ($this->lists as $article):
                ?>
            <tr>
              <td align="center"><input type="checkbox" name="article_ids[]" value="<?php echo $article['article_id'];?>" /></td>
                <td><?php echo $article['article_id'];?></td>
                <td><?php echo $article['cat_name']; ?></td>
                <td><?php echo $article['title'];?></td>
                <td><?php echo $article['keywords'];?></td>
                <td><?php echo $article['author'];?></td>
                <td><?php echo $article['add_time'];?></td>
                <td><a title="编辑" href="/admin/article/add/?act=edit&article_id=<?php echo $article['article_id'];?>&fromurl=<?php echo $this->url;?>"><img border="0" src="/images/admin/icon_edit.gif" /></a>  <a onclick="return confirm(_dropInfo)" title="删除" href="/admin/article/del?article_id=<?php echo $article['article_id'];?>&fromurl=<?php echo $this->url;?>"><img border="0" src="/images/admin/icon_drop.gif" /></a> </td>
            </tr>
            <?php
            endforeach;
            ?>
        </table>
</div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="footer">
		<tr>
			<td width="21%">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

				<input type="checkbox" id="select_all" title="全选/反选"
					onClick="selectBox(this.id, 'article_ids[]')">
				<label for="select_all">
					全选
				</label>
				&nbsp;&nbsp;
				<input name="del" type="submit" id="del" value="删除" class="search"
					onclick="return dropConfirm('article_ids[]')" />
		  </td>
			<td width="79%"><div class="page">
				<?php echo $this->pageResult;?>
				</div>
		  </td>
		</tr>
	</table>
</form>

